package com.shop.milk_tea_shop.common;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 俞静雯
 * @Description 统一的接口返回结果类
 * @date 2024-06-17  23:16
 */
@Data
public class Result<T> implements Serializable {
    String msg;

    CodeEnum code;

    T data;

    GlobalInfo global;

    public Result(String msg, CodeEnum code, T data, GlobalInfo global) {
        this.msg = msg;
        this.code = code;
        this.data = data;
        this.global = global;
    }
}
